﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="_jugador.ascx.cs" Inherits="BoxScore.jugador._jugador" %>



<asp:DetailsView ID="DetailsView1" runat="server" Height="27px" Width="397px" 
    AutoGenerateRows="False" DataSourceID="ObjectDataSource1">
    <Fields>
        <asp:TemplateField ShowHeader="False">
            <ItemTemplate>
                <table>
                    <tr>
                        <td rowspan="4">
                            <asp:Image ID="Image1" runat="server" Width="75px" 
                                ImageUrl='<%# "~/jugador/images/" + Eval("picture", "{0}") %>' /></td>
                        <td class="resaltante">Nombre:</td>
                        <td>
                            <h1>
                            <asp:Label ID="Label1" runat="server" Text='<%# Eval("first_name", "{0}") %>'></asp:Label>
                        &nbsp;
                            <asp:Label ID="Label6" runat="server" Text='<%# Eval("last_name") %>'></asp:Label>
                            </h1>    
                        </td>
                    </tr>
                    <%--<tr>
                        <td>Estatus:</td>
                        <td>
                            <asp:Label ID="Label2" runat="server" Text='<%# Eval("status", "{0}") %>'></asp:Label></td>
                    </tr>--%>
                    <tr>
                        <td class="resaltante">Batea:</td>
                        <td>
                            <asp:Label ID="Label3" runat="server" Text='<%# Eval("batting_string") %>'></asp:Label>
                        </td>
                    </tr>
                    
                    <tr>
                        <td class="resaltante">Lanza:</td>
                        <td>
                            <asp:Label ID="Label7" runat="server" Text='<%# Eval("throwing_arm_string") %>'></asp:Label>
                        </td>
                    </tr>
                    
                    
                    <tr>
                        <td class="resaltante">Posicion:</td>
                        <td>
                            <asp:Label ID="Label5" runat="server" 
                                Text='<%# Eval("position_string", "{0}") %>'></asp:Label></td>
                    </tr>
                    
                    
                
                </table>
            </ItemTemplate>
        </asp:TemplateField>
    </Fields>


</asp:DetailsView>
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
    SelectMethod="getJugador" TypeName="BoxScore.Model.BoxScoreBD">
    <SelectParameters>
        <asp:QueryStringParameter DefaultValue="0" Name="idliga" 
            QueryStringField="liga" Type="Int32" />
        <asp:QueryStringParameter DefaultValue="0" Name="idplayer" 
            QueryStringField="jugador" Type="Int32" />
    </SelectParameters>
</asp:ObjectDataSource>

